package edu.suda.xsap.mapper;


import edu.suda.xsap.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface MemberMapper {
    void add(Member member);//保存到数据库中

    List<Member> findAll();//查询所有
    void update(Member member);//修改

    void deleteById(Integer id);//根据id删除

    void deleteSelected(Integer[] ids);//批量删除



    List<Member> findByName(String name);//根据名字查询
    List<Member> findById(Integer id);
}
